/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2023. All rights reserved.
 * Description: UDK heap source file
 * Author: -
 * Create: 2021.4.19
 */
#include <stdbool.h>

#include "udk_mheap.h"

int udk_malloc_heap_alloc(const char *type, size_t size, int socket_arg,
    unsigned int flags, size_t align, size_t bound, bool contig, struct udk_melem *mem)
{
    UDK_ASSERT(g_udk_reg_ops.mheap_alloc != NULL);
    return g_udk_reg_ops.mheap_alloc(type, size, socket_arg, flags, align, bound, contig, mem);
}

int udk_malloc_heap_free(void *addr)
{
    UDK_ASSERT(g_udk_reg_ops.mheap_free != NULL);
    return g_udk_reg_ops.mheap_free(addr);
}
